package com.milk.service.order;
import java.util.List;
import java.util.Map;

import com.milk.model.entity.order.Order;

/**
 * order service
 * 2017-09-14 16:57:51  徐政涛
 */ 
public interface OrderService {

    public static String RESULT_NULL = "orderService方法参数空异常";
    /**
     *创建Order信息
     */
    public Order save(Order order);
    /**
     *修改Order信息
     */
    public Order update(Order order) throws Exception;
    /**
     *根据Id获取Order信息
     */
    public Order getOrderById(long orderId);
    /**
     *根据Id删除Order信息(注意：物理删除)
     */
    public void deleteOrderById(long orderId);
    /**
     *根据map获取Order信息
     */
    public Order getOrderByMap(Map<String, Object> params);
    /**
     *根据map删除Order信息(注意：物理删除)
     */
    public void deleteOrderByMap(Map<String, Object> params);
    /**
     *根据params查询Order的实体集合
     */
    public List<Order> queryOrder(Map<String, Object> params);
	
}